Ext.namespace("Project.Main");

Project.Main = function(){


	var flag="";
		 //访问action
	 var conn = new Ext.data.Connection({
	    url:'../security/checkMenu.form?timesnap=' + Date.parse(new Date()),
	    method:'post'
	 })
	 var param={menuName:"jlgzt"};
	  //alert(Ext.util.JSON.encode(param));  
	 Utils.request(conn,{
	    params:param,
	    scope:this,
	    success:function(data){
	     if(data.access=="true"){
	      flag="true"
	      		 //原始代码开始
	      		 var mainPanel = new Ext.TabPanel( {
					activeTab : 0,
					width : 950,
					border : false,
					layoutOnTabChange:true,
					renderTo : 'main',
					closable:true,
					autoScroll:true,
					items : [ {
					title : '已联系数据',
					autoHeight : true,
					items : [ new ManagementISconnect().Managementconnect ]
					},
					{
					title : '潜在数据',
					autoHeight : true,
					items : [ new ManagementPotentialCust().Managementpotential ]
					},
					{
					title : '明确数据',
					autoHeight : true,
					items : [ new ManagementIssure().Managementsure ]
					}
					]
					});
				//原始代码结束
	     }else{
	      flag="false"
	      alert("没有权限");
	      return;
	     }
	    }
	});
};	
	
	
	Ext.onReady(function(){
		 Ext.QuickTips.init();
		 Ext.form.Field.prototype.msgTarget = 'side';
		 Ext.BLANK_IMAGE_URL = '../resources/images/default/s.gif';
		 new Project.Main();
	});